/* util */
import moment from 'moment';
/**
 * @des 替换全局window.Date方法 抹平了webkit Date的兼容
 */
export const safeNewDate = (...args:any):Date => {
  if(args.length > 1){
    return new Date(...args as [number, number, number, number, number, number, number]);
  }
  return moment(...args).toDate();
}